<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <title>在线OJ题目列表 | CodePioneer</title>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap">
    <style>
        :root {
            --primary-color: #2563eb;    /* 主色调-科技蓝 */
            --hover-color: #1d4ed8;     /* 悬停加深色 */
            --bg-overlay: rgba(10, 25, 47, 0.92); /* 背景覆盖色 */
            --text-primary: #f8f9fa;    /* 主文字色 */
            --text-secondary: #e0f2fe;  /* 次文字色 */
            --card-bg: rgba(255, 255, 255, 0.05); /* 卡片背景色 */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            font-size: 16px;
            scroll-behavior: smooth;
        }

        body {
            min-height: 100vh;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            line-height: 1.6;
            background: linear-gradient(var(--bg-overlay), var(--bg-overlay)), 
                        url('https://picsum.photos/1920/1080?random=2') center/cover fixed;
        }

        .container {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* 导航栏优化 */
        .navbar {
            padding: 0 2rem;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-links a, .nav-actions a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--text-primary);
            background-color: rgba(255, 255, 255, 0.1);
        }

        .nav-actions {
            display: flex;
            gap: 1rem;
        }

        /* 题目列表主内容 */
        .question-container {
            flex: 1;
            max-width: 1200px;
            margin: 2rem auto;
            padding: 2rem;
            background: var(--card-bg);
            border-radius: 12px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-title {
            color: var(--text-primary);
            font-size: 2rem;
            margin-bottom: 2rem;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background: var(--primary-color);
            margin: 0.5rem auto 0;
            border-radius: 2px;
        }

        .question-table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
            overflow: hidden;
        }

        .question-table th, 
        .question-table td {
            padding: 1rem;
            text-align: left;
            color: var(--text-secondary);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .question-table th {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-primary);
            font-weight: 600;
        }

        .question-table tr:hover {
            background: rgba(255, 255, 255, 0.05);
            transition: background 0.2s ease;
        }

        .question-table td a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            position: relative;
        }

        .question-table td a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
        }

        .question-table td a:hover::after {
            width: 100%;
        }

        /* 页脚 */
        .footer {
            padding: 1.5rem 2rem;
            background: rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-secondary);
            text-align: center;
            font-size: 0.875rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar {
                padding: 0 1rem;
            }

            .nav-links {
                gap: 1rem;
            }

            .nav-links a {
                padding: 0.5rem 0.75rem;
            }

            .question-container {
                margin: 1rem;
                padding: 1.5rem;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .question-table {
                min-width: 600px;
            }

            .table-wrapper {
                overflow-x: auto;
            }
        }

        @media (max-width: 576px) {
            .nav-links {
                display: none; /* 移动端可扩展为汉堡菜单 */
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 导航栏 -->
        <nav class="navbar">
            <div class="nav-content">
                <div class="nav-links">
                    <a href="/">首页</a>
                    <a href="/all_question">题库</a>
                    <a href="#">竞赛</a>
                    <a href="#">社区</a>
                    <a href="#">求职</a>
                </div>
                <div class="nav-actions">
                    <a href="#">联系我们</a>
                    <a href="#" style="background-color: var(--primary-color); color: white; border-radius: 4px;">登录</a>
                </div>
            </div>
        </nav>

        <!-- 题目列表 -->
        <main class="question-container">
            <h2 class="section-title">题目列表</h2>
            <div class="table-wrapper">
                <table class="question-table">
                    <thead>
                        <tr>
                            <th style="width: 15%;">编号</th>
                            <th style="width: 50%;">标题</th>
                            <th style="width: 35%;">难度</th>
                        </tr>
                    </thead>
                    <tbody>
                        {{#question_list}}
                        <tr>
                            <td>{{number}}</td>
                            <td><a href="/question/{{number}}">{{title}}</a></td>
                            <td>{{star}}</td>
                        </tr>
                        {{/question_list}}
                    </tbody>
                </table>
            </div>
        </main>

        <!-- 页脚 -->
        <footer class="footer">
            <p>© 2025 CodePioneer. All rights reserved. 技术支持：keanu_zhang</p>
        </footer>
    </div>
</body>

</html>
